<?php
function connexpdo($dbn){
	try {
		$db = new PDO('mysql:host=localhost;dbname='.$dbn,'root','');
		echo "Connexion reussie\n\n";
		return $db;
	} catch (Exception $e) {
		die("Impossible de se connecter: " . $e->getMessage());return false;
	}
}
?>